import request from "./request";

export const getUserData = (data) => {
  return request({
    url: "/user/getUserData",
    method: "get",
    data,
  });
};

export const deleteUser = (data) => {
  return request({
    url: "/user/delUser",
    method: "get",
    data,
  });
};

export const createUser = (data) => {
  return request({
    url: "/user/createUser",
    method: "post",
    data,
  });
};

export const updateUser = (data) => {
  return request({
    url: "/user/updateUser",
    method: "post",
    data,
  });
};
